echo "部署 $appName ..."

override=$(cat docker-app/split-lib/readme-split-jar.txt | grep "override: true" || true)
if [ "$override" == "" ] ; then

    mkdir -p /app/java/$appName/lib
    cp -f docker-app/split-lib/lib/*  /app/java/$appName/lib/
    cp -f docker-app/split-lib/*.jar  /app/java/$appName/

else

    mkdir -p /app/java/$appName/lib
    cp -f docker-app/lib/*  /app/java/$appName/lib/
    cp -f docker-app/*.jar  /app/java/$appName/
fi


cd /app/java

bash run-17.sh $appName

echo "启动任务$appName 成功,请手动检查启动状态"